package com.hspedu.system_;

import java.util.Calendar;

public class Calendar_ {
    public static void main(String[] args) {
        Calendar c = Calendar.getInstance();
        System.out.println("year=" + c.get(Calendar.YEAR) + " month=" + c.get(Calendar.MONTH + 1) + " day" + c.get(Calendar.DAY_OF_MONTH) + " hour=" + c.get(Calendar.HOUR_OF_DAY));
    }
}
